package com.fortune.dto.in.mStoreInit;

import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

/**
 * TODO m_init_base_info
 * @author ran
 *
 */
public class MStoreInitEditDto {
    @NotBlank(message="初始化单ID不能为空")
    @ApiModelProperty(example="初始化单ID")
    private String id;
    @NotNull(message="初始化单编号不能为空")
    @ApiModelProperty(example="初始化单编号")
    private String num;
    @NotBlank(message="初始化仓库ID不能为空")
    @ApiModelProperty(example="初始化仓库ID")
    private String storeId;
    @NotNull(message="开单日期不能为空")
    @ApiModelProperty(example="开单日期(2016-07-06 10:17:48)")
    private Date createTime;
    @ApiModelProperty(value="商品信息")
    private List<MStoreInitProduceDto> produce;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getNum() {
        return num;
    }

    public void setNum(String num) {
        this.num = num;
    }

    public String getStoreId() {
        return storeId;
    }

    public void setStoreId(String storeId) {
        this.storeId = storeId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public List<MStoreInitProduceDto> getProduce() {
        return produce;
    }

    public void setProduce(List<MStoreInitProduceDto> produce) {
        this.produce = produce;
    }

    @Override
    public String toString() {
        return "MStoreInitEditDto{" +
                "id='" + id + '\'' +
                ", num='" + num + '\'' +
                ", storeId='" + storeId + '\'' +
                ", createTime=" + createTime +
                ", produce=" + produce +
                '}';
    }
}
